module.exports = {
  mode: 'universal', //服务端渲染模式

  /*
   ** 网页的头部配置
   */
  head: {
    title: '结城的博客',
    meta: [{
        charset: 'utf-8'
      },
      {
        name: 'viewport',
        content: 'width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0'
      },
      {
        hid: 'description',
        name: 'description',
        content: '一个web前端工程师,javascript,爱生活，爱code...'
      },
      {
        name: 'apple-mobile-web-app-capable',
        content: "yes"
      },
      {
        name: 'screen-orientation',
        content: "portrait"
      },
      {
        name: 'full-screen',
        content: "yes"
      },
      {
        name: 'browsermode',
        content: "browsermode"
      },
      {
        name: 'x5-orientation',
        content: "portrait"
      },
      {
        name: 'x5-page-mode',
        content: "app"
      },
      {
        name: 'x5-fullscreen',
        content: "true"
      }
    ],
    link: [{
        rel: 'icon',
        type: 'image/x-icon',
        href: '/favicon.ico'
      },
      {
        rel: 'stylesheet',
        type: 'text/css',
        href: '//at.alicdn.com/t/font_1875912_539u8lukv0l.css'
      }
    ]
  },


  /*
   ** 加载条的颜色样式等
   */
  loading: {
    color: '#fff'
  },

  /**
   * 路由
   */
  router: {},

  styleResources: {
    scss: [
      './assets/css/theme.scss',
      './assets/css/mixin.scss'
    ]
  },

  /*
   ** 全局的css
   */
  css: [
    'element-ui/lib/theme-chalk/index.css',
    'element-ui/lib/theme-chalk/display.css',
    'normalize.css',
    '@/assets/css/public.css'
  ],

  /*
   ** 插件配置
   */
  plugins: [
    '@/plugins/element-ui',
    {
      src: '@/plugins/store.js',
      ssr: false
    }
  ],

  /*
   ** Nuxt.js dev-modules
   */
  buildModules: [],

  /*
   ** nuxt项目相关模块
   */
  modules: [
    '@nuxtjs/style-resources'
  ],

  // 服务
  server: {
    port: 8080,
    host: '0.0.0.0'
  },

  /*
   ** 打包相关配置
   */
  build: {
    transpile: [/^element-ui/],
    /*
     ** You can extend webpack config here
     */
    extend(config, ctx) {}
  }
}
